import { User } from "../entity/user.entity";
import { Player } from "../entity/player.entity";

 
export class PlayerService{
    playerList={}

 


    public static ins() : PlayerService{
        if (PlayerService._ins == null){
            PlayerService._ins = new PlayerService();
        }
        return PlayerService._ins;
    }

    private static _ins = null;


    public addPlayer(player:Player){
         this.playerList[player.id]=player;
    }
    public getPlayer(id):Player{
        return this.playerList[id];
    }

    

   
   
}